package com.example.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.entity.basics.BasicsEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ptuDai
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class KeyResults extends BasicsEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 目标名称
     */
    private Integer objectiveId;
    /**
     * 关键结果名称
     */
    private String name;

    /**
     * 关键结果描述
     */
    private String descriptors;

    /**
     * 状态：0-未完成 1-已完成
     */
    private Boolean status = false;

    /**
     * 完成时间
     * localDateTime 格式需要转换
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime completeTime;

}
